<template>
    <div class="region region--lightbox search j-new-search j-search is-active" data-source="search">
        <div class="lightbox lightbox--search">
            <div class="container container--search-bar" role="region" aria-label="search form">
                <div class="region region--full">
                    <div class="column column--full ">
                        <div class="form form--search search__form" role="search">
                            <div id="search-overlay" class="search__bar">
                                <div class="search__input">
                                    <label for="mw-search">
                                        <span class="screen-reader-text">Search</span>
                                    </label>
                                    <i class="icon icon--search"></i>
                                    <input class="input input--search j-search-input" type="text" id="mw-search"
                                        data-isoverlay="" value="" placeholder="Enter a symbol or keyword">
                                    <button class="btn btn--outline" type="button" id="btn-clear"
                                        aria-label="Clear Search"><span class="m-hide">Clear</span><i
                                            class="icon icon--close m-show"></i></button>
                                    <div class="divider"></div>
                                    <button class="btn btn--secondary j-search-button" type="button"
                                        id="btn-submit-search" aria-label="Submit Search">Search</button>
                                </div>
                                <div class="search__btn advanced-search">
                                    <a href="" class="link j-advanced-search">Advanced Search</a><i
                                        class="icon icon--arrow-right"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script lang='ts' setup>

</script>
<style lang='scss' scoped>
.region--lightbox.is-active {
    visibility: inherit;
}

.region--lightbox.search {
    max-width: 100%;
    left: 0;
    top: 60px;
    max-height: 100%;
    height: 100%;
    margin: 0;
    bottom: auto;
    color: #262626;
    background: hsla(0, 0%, 100%, .98)
}

.has-bulletin .region--lightbox.search {
    top: 122px
}

.has-bulletins .region--lightbox.search {
    top: 162px
}

.page--vse.welcome .region--lightbox.search .region--full {
    padding: 0
}

.region--lightbox.search .region--primary {
    -webkit-order: 0;
    -ms-flex-order: 0;
    order: 0
}

.region--lightbox.search .region--primary .column>.element {
    padding: 0
}

.region--lightbox.search .region--aside .column {
    background: transparent;
    min-height: 0
}

.region--lightbox.search .container--ad {
    margin: 20px auto 0
}

.region--lightbox.search .container--ad .element--ad>div {
    width: 100%
}

.region--lightbox.search .options--search {
    width: 100%;
    max-width: 1280px;
    position: relative;
    margin: 0 auto
}

.region--lightbox.search .lightbox {
    overflow-y: scroll
}

.region--lightbox.search .search__form {
    margin: 0
}

.region--lightbox.search .container--search-results {
    padding-bottom: 100px
}

.region--lightbox.search .container--search-results .result__list {
    width: 100%;
    margin-bottom: 20px
}

.region--lightbox.search .element--recentTickers .ticker .negative:hover,
.region--lightbox.search .element--recentTickers .ticker .neutral:hover,
.region--lightbox.search .element--recentTickers .ticker .positive:hover {
    background: transparent
}

@media (max-width: 1295px) {
    .region--lightbox.search .container .region--primary {
        -webkit-flex-flow: row wrap;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
        max-width: 640px
    }

    .region--lightbox.search .region--primary .column--aside {
        width: 100%
    }

    .region--lightbox.search .region--aside {
        position: relative;
        z-index: 0;
        left: auto;
        top: auto;
        width: 100%;
        min-height: 0;
        height: auto
    }

    .region--lightbox.search .options--search {
        max-width: 960px
    }

    .container--search-results .column--aside {
        max-width: 100%;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between
    }

    .container--search-results .group--lists {
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1
    }

    .container--search-bar .search__options .search__filters {
        max-width: 60%
    }

    .container--search-bar .search__options .search__operators {
        max-width: 40%
    }
}

@media (max-width: 975px) {

    .container .region--lightbox.search,
    .region--lightbox.search .region {
        max-width: 100%
    }

    .region--lightbox.search .region--primary {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-flow: column;
        -ms-flex-flow: column;
        flex-flow: column
    }

    .region--lightbox.search .region--primary .column--aside {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        width: 100%
    }

    .region--lightbox.search .options--search {
        max-width: 640px
    }

    .container--search-results {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap
    }

    .container--search-results .region--aside,
    .container--search-results .region--primary {
        max-width: 100%
    }

    .container--search-bar .search__options {
        -webkit-flex-flow: column;
        -ms-flex-flow: column;
        flex-flow: column
    }

    .container--search-bar .search__options.collapsed {
        min-height: 0
    }

    .container--search-bar .search__options .search__filters,
    .container--search-bar .search__options .search__operators {
        max-width: 100%
    }
}

@media (max-width: 655px) {
    .region--lightbox.search {
        top: 82px;
        left: auto;
        right: auto;
        width: 100%
    }

    .has-bulletin .region--lightbox.search,
    .has-bulletins .region--lightbox.search {
        top: 82px
    }

    .container .region--lightbox.search,
    .region--lightbox.search .options--search,
    .region--lightbox.search .region {
        max-width: 100%
    }

    .region--lightbox.search .region--primary .column>.element--tabs {
        margin-bottom: 0
    }

    .region--lightbox.search .container--search-results .header.header--primary {
        margin-bottom: 10px
    }

    .container--search-bar .search__options .search__filter .content__type,
    .container--search-bar .search__options .search__filter .date__range {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap
    }

    .container--search-bar .search__options .search__filter .filter__item {
        margin-right: 0
    }

    .container--search-bar .search__options .search__filter .filter__item#to-label {
        text-align: center
    }

    .container--search-results .header {
        margin-bottom: 0
    }

    .container--search-results .column--aside .ticker__set {
        max-width: 100%
    }

    .container--search-results .column--aside .ticker__set+.header--text,
    .container--search-results .column--aside .ticker__set:nth-of-type(2),
    .container--search-results .element--recentTickers {
        display: none
    }

    .container--search-results .group--lists {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap
    }

    .container--search-results .result__list {
        width: 100%;
        margin-bottom: 20px
    }

    .container--search-results .search__form .divider {
        margin: 10px 0
    }

    .container--search-results .element--tabs {
        margin-bottom: 0
    }

    .symbol--index .region--lightbox.search .region--primary .column--aside:first-of-type {
        -webkit-order: 4;
        -ms-flex-order: 4;
        order: 4
    }
}

.search__form {
    margin: -20px 0 0
}

.search__form .search__bar {
    width: 100%;
    padding-top: 10px;
    margin-bottom: 50px;
    position: relative;
    background: #434343
}

.search__form .search__bar:after,
.search__form .search__bar:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    background: #434343;
    width: 50vw
}

.search__form .search__bar:before {
    left: 50%
}

.search__form .search__bar:after {
    right: 50%
}

.search__form .search__input {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    border-radius: 5px;
    margin-bottom: -20px;
    background-color: #fff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .2)
}

.search__form .search__input .btn {
    box-shadow: none;
    border-radius: 5px;
    margin: 10px;
    line-height: 30px
}

.search__form .search__input .btn--secondary {
    background: #3677a8
}

.search__form .search__input .btn--secondary:hover {
    background: #306995
}

.search__form .search__input .btn--outline {
    color: #6a6a6a;
    background-color: #f3f3f3
}

.search__form .search__input .btn--outline:hover {
    background-color: #e1e1e1
}

.search__form .search__input .btn--outline .icon {
    color: #6a6a6a;
    position: relative;
    font-size: .75rem;
    left: auto;
    top: auto
}

.search__form .search__input .btn--outline .icon.m-show {
    display: none
}

.search__form .search__input .btn:focus-visible {
    outline-offset: 2px
}

.search__form .search__input .divider {
    width: 3px;
    margin: 10px 5px;
    background-color: #e1e1e1
}

.search__form .search__input .icon {
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    color: #2e2e2e;
    font-size: 1.125rem;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center
}

.search__form .input--search {
    width: 100%;
    border-radius: 5px;
    padding: 10px 10px 9px 40px;
    font-size: 1.125rem;
    font-weight: 600
}

#maincontent .search__form .input--search:focus-visible,
.search__form .input--search:focus-visible {
    outline: none
}

.search__options {
    width: 100%;
    overflow: hidden;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.search__options,
.search__options.collapsed {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex
}

.search__options.collapsed {
    height: 0;
    opacity: 0;
    padding-top: 0;
    margin-bottom: 0
}

.search__options .mono {
    color: #6a6a6a;
    font-family: monospace
}

.search__options .dp-below {
    width: 100%;
    max-width: 300px
}

.search__options .operators__info .text {
    margin-bottom: 10px
}

.search__options .operators__header {
    margin-bottom: 20px;
    position: relative
}

.search__options .operators__header:before {
    content: "";
    height: 1px;
    width: 30px;
    background-color: #c3c3c3;
    position: absolute;
    left: 0;
    bottom: -6px
}

.advanced-search {
    margin-bottom: 0
}

.advanced-search .link {
    text-decoration: underline;
    -webkit-text-decoration-color: #3677a8;
    text-decoration-color: #3677a8;
    text-underline-position: under
}

.advanced-search .link:hover {
    background-color: #eef8ff
}

.advanced-search .advanced__btn {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    padding: 0 0 2px;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    opacity: 1;
    transition: opacity .1s
}

.advanced-search .advanced__btn.is-hidden {
    opacity: 0;
    display: none
}

.advanced-search .advanced__btn .text {
    border-bottom: 2px solid #fff;
    transition: border-color .1s ease-in-out
}

.advanced-search .advanced__btn:hover .text {
    border-color: #3677a8
}

.search__bar .advanced-search .advanced__btn {
    display: inline-block
}

.search__options .advanced-search .advanced__btn {
    margin-left: auto;
    background-color: #fff;
    padding-left: 10px
}

.advanced-search .icon {
    color: #3677a8;
    margin-right: 3px;
    vertical-align: middle
}

.search__bar .advanced-search {
    position: absolute;
    text-align: right;
    bottom: -50px;
    right: 0
}

.search__options .advanced-search {
    position: relative;
    width: 100%
}

.search__options .advanced-search:before {
    content: "";
    height: 1px;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 40%;
    z-index: -1;
    background-color: #e1e1e1
}

.search__filter {
    margin-bottom: 20px
}

.search__filter .filter__item {
    margin-right: 10px;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column;
    position: relative
}

.search__filter .filter__item#to-label {
    margin-top: 20px
}

.search__filter .filter__item .element--header {
    margin-bottom: 0
}

.search__filter .filter__item .checkbox__text {
    margin-left: 10px
}

.search__filter .filter__item .checkbox__text .label {
    font-size: .875rem
}

.search__filter .filter__item .input--checkbox {
    height: 16px;
    width: 16px;
    margin-right: 10px
}

.search__filter .filter__item .form__item.btn {
    border-radius: 18px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content
}

.search__filter .input {
    padding: 10px;
    border: 1px solid #939393
}

.search__filter .input--select {
    padding: 10px 40px 10px 10px
}

#maincontent .search__filter .input--select:focus-visible {
    outline: none
}

.search__filter .angle,
.search__filter .calendar {
    color: #3677a8;
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 0
}

.search__filter .angle {
    bottom: 8px;
    z-index: -1
}

.search__filter .date__range {
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center
}

.search__filter .date__range+.content__type {
    margin-left: 20px
}

.filter__label .header {
    margin-bottom: 5px;
    font-size: .875rem;
    font-weight: 700;
    font-family: Mulish, sans-serif
}

.container--search-results .element--header {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 5px;
    -webkit-align-items: baseline;
    -ms-flex-align: baseline;
    align-items: baseline
}

.container--search-results .element--header .results__count {
    font-size: .75rem
}

.container--search-results .header--title {
    font-weight: 800
}

.container--search-results .results__count {
    color: #6a6a6a;
    font-family: Lato, sans-serif;
    font-size: .75rem;
    font-weight: 400;
    margin-left: auto;
    white-space: nowrap;
    text-transform: uppercase
}
</style>